﻿using Model.EntityModel.Auth;

namespace Service.IService.ISysService
{
    public  interface IDeptService
    {
        Task<string> CreateDeptAsync(Dept dept);
        List<Dept> GetDeptTree();
        Task<bool> UpdateDeptAsync(Dept dept);
        Task<bool> DeleteDeptAsync(string id);
        Task<Dept> GetDeptByIdAsync(string id);
        Task<List<Dept>> GetAllDeptsAsync();
        Task<bool> IsDeptExistsAsync(string deptId);
        Task<List<Dept>> GetDeptHierarchyAsync();
        bool CreateDept(Dept dept);
        bool UpdateDept(Dept dept);
        bool DeptExists(string deptId);
        Dept GetDeptById(string deptId);
        bool DeleteDept(string deptId);
        List<Dept> GetAllDepts();
    }
}
